import request from "@/utils/request";

// 查询列表
export function listBizCockpitInfo(query) {
  return request({
    url: "/biz/bizCockpitInfo/list",
    method: "get",
    params: query,
  });
}

// 查询信息详细
export function getBizCockpitInfoDetail(id) {
  return request({
    url: "/biz/bizCockpitInfo/" + id,
    method: "get",
  });
}

// 新增信息
export function addBizCockpitInfo(data) {
  return request({
    url: "/biz/bizCockpitInfo",
    method: "post",
    data: data,
  });
}

// 修改信息
export function updateBizCockpitInfo(data) {
  return request({
    url: "/biz/bizCockpitInfo",
    method: "put",
    data: data,
  });
}

// 删除信息
export function delBizCockpitInfo(id) {
  return request({
    url: "/biz/bizCockpitInfo/" + id,
    method: "delete",
  });
}

// 查询最大编号
export function findMaxSort() {
  return request({
    url: "/biz/bizCockpitInfo/findMaxSort",
    method: "get",
  });
}
